FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o /gginx ./cmd/proxyd

FROM alpine:3.18
COPY --from=builder /gginx /usr/local/bin/
EXPOSE 80 443
CMD ["gginx"]